<%--
  Created by IntelliJ IDEA.
  User: 流年
  Date: 2021/11/25
  Time: 14:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/user/path2" method="post">
    <label>
        用户名:
        <input type="text" name="name" value="张三">
    </label> <br>
    <label>
        年龄:
        <input type="text" name="age" value="18">
    </label> <br>
  <input type="submit" value="请求参数封装到VO对象中">
</form>
<br/>
<form action="${pageContext.request.contextPath}/user/path3" method="post">
    爱好:
    <label>
        <input type="text" name="hobby" value="Basketball"><br>
        <input type="text" name="hobby" value="Football"><br>
        <input type="text" name="hobby" value="Music"><br>
    </label>

    <hr>

    用户:
    <label>
        <input type="text" name="users[0].name" value="tom">
        <input type="text" name="users[0].age" value="19"><br>
    </label>

    <hr>

    <label>
        <input type="text" name="identity['name']" value="jack"> <br>
        <input type="text" name="identity['age']" value="18">
    </label>

    <br>

    <input type="submit" value="请求参数封装到数组中">

</form>
</body>
</html>
